package com.beilang.hotline.login;

import java.io.Serializable;


public class UserAccessTO implements Serializable {

    private boolean userInd = false;

    private boolean sysInd = false;

    private boolean moduleInd = false;

    private boolean deptInd = false;    

    private boolean templateInd = false;    

    private boolean emailInd = false;

    private boolean issueInd = false;

    private boolean companyInd = false;

    private boolean personInd = false;

    private boolean exportInd = false;

    private boolean titleInd = false;

    private boolean historyAddInd = false;

    private boolean historyModifyInd = false;

    private boolean historyProcessInd = false;

    private boolean historyCloseInd = false;

    private boolean historyDeleteInd = false;

    private boolean historyDownloadInd = false;

    private boolean historyExportInd = false;

    private boolean popInd = false;

    public UserAccessTO(String userRole) {
        if ("A".equalsIgnoreCase(userRole)) {
            userInd = true;
            sysInd = true;
            moduleInd = true;
            templateInd =true;
            emailInd = true;
            issueInd = true;
            deptInd=true;
            companyInd = true;
            personInd = true;
            exportInd = true;
            historyAddInd = true;
            historyModifyInd = true;
            historyProcessInd = true;
            historyCloseInd = true;
            historyDeleteInd = true;
            historyDownloadInd = true;
            historyExportInd = true;
            titleInd = true;
            popInd=false;
        } else if ("R".equalsIgnoreCase(userRole)) {
            historyAddInd = true;
            historyModifyInd = true;
            historyProcessInd = true;
            historyCloseInd = true;
            historyDeleteInd = true;
            popInd=false;
        } else {
            historyProcessInd = true;
            popInd=false;
        }
    }

    public UserAccessTO() {

    }


    public boolean isUserInd() {
        return userInd;
    }

    public void setUserInd(boolean userInd) {
        this.userInd = userInd;
    }

    public boolean isSysInd() {
        return sysInd;
    }

    public void setSysInd(boolean sysInd) {
        this.sysInd = sysInd;
    }

    public boolean isModuleInd() {
        return moduleInd;
    }

    public void setModuleInd(boolean moduleInd) {
        this.moduleInd = moduleInd;
    }

    public boolean isEmailInd() {
        return emailInd;
    }

    public void setEmailInd(boolean emailInd) {
        this.emailInd = emailInd;
    }

    public boolean isIssueInd() {
        return issueInd;
    }

    public void setIssueInd(boolean issueInd) {
        this.issueInd = issueInd;
    }

    public boolean isCompanyInd() {
        return companyInd;
    }

    public void setCompanyInd(boolean companyInd) {
        this.companyInd = companyInd;
    }

    public boolean isPersonInd() {
        return personInd;
    }

    public void setPersonInd(boolean personInd) {
        this.personInd = personInd;
    }

    public boolean isExportInd() {
        return exportInd;
    }

    public void setExportInd(boolean exportInd) {
        this.exportInd = exportInd;
    }

    public boolean isHistoryAddInd() {
        return historyAddInd;
    }

    public void setHistoryAddInd(boolean historyAddInd) {
        this.historyAddInd = historyAddInd;
    }

    public boolean isHistoryModifyInd() {
        return historyModifyInd;
    }

    public void setHistoryModifyInd(boolean historyModifyInd) {
        this.historyModifyInd = historyModifyInd;
    }

    public boolean isHistoryProcessInd() {
        return historyProcessInd;
    }

    public void setHistoryProcessInd(boolean historyProcessInd) {
        this.historyProcessInd = historyProcessInd;
    }

    public boolean isHistoryCloseInd() {
        return historyCloseInd;
    }

    public void setHistoryCloseInd(boolean historyCloseInd) {
        this.historyCloseInd = historyCloseInd;
    }

    public boolean isHistoryDeleteInd() {
        return historyDeleteInd;
    }

    public void setHistoryDeleteInd(boolean historyDeleteInd) {
        this.historyDeleteInd = historyDeleteInd;
    }

    public boolean isHistoryDownloadInd() {
        return historyDownloadInd;
    }

    public void setHistoryDownloadInd(boolean historyDownloadInd) {
        this.historyDownloadInd = historyDownloadInd;
    }

    public boolean isHistoryExportInd() {
        return historyExportInd;
    }

    public void setHistoryExportInd(boolean historyExportInd) {
        this.historyExportInd = historyExportInd;
    }

    public boolean isPopInd() {
        return popInd;
    }

    public void setPopInd(boolean popInd) {
        this.popInd = popInd;
    }

    public boolean isTitleInd() {
        return titleInd;
    }

    public void setTitleInd(boolean titleInd) {
        this.titleInd = titleInd;
    }

    public boolean isTemplateInd() {
        return templateInd;
    }

    public void setTemplateInd(boolean templateInd) {
        this.templateInd = templateInd;
    }

    public boolean isDeptInd() {
        return deptInd;
    }

    public void setDeptInd(boolean deptInd) {
        this.deptInd = deptInd;
    }
}
